package com.jmm.api.config;

import lombok.Data;

/**
 * <pre>
 * </pre>
 * 
 * <small> 2018年4月28日 | Aron</small>
 */
@Data
public class JWTConfig {
    private String ssKey = "YOUGOUAPI";
    /**
     * jwt过期时间,默认2小时，单位为毫秒
     */
    private Long expireTime = 7200000L;
    /**
     *  refresh_token过期时间，默认7天，单位为毫秒
     */
    private Long refreshTokenExpire = 604800000L;

    private Long socialTokenExpire = 300000L;

    private String tokenBizKey = "tk";
    private String reTokenBizKey = "rtk";
    private String soTokenBizKey = "stk";


    @Override
    public String toString() {
        return "JWTConfig [ssKey=" + ssKey + ", expireTime=" + expireTime + ", refreshTokenExpre=" + refreshTokenExpire + "]";
    }

}
